import 'package:flutter/material.dart';
import 'package:flutter_kit_dsp/flutter_kit_dsp.dart';

import 'pass_item.dart';

class XoMiddle extends StatefulWidget {
  const XoMiddle({super.key});

  @override
  State<XoMiddle> createState() => _XoMiddleState();
}

class _XoMiddleState extends State<XoMiddle> {
  @override
  void initState() {
    Get.lazyPut<GetxGlobalController>(() => GetxGlobalController());
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.only(top: 2, bottom: 2),
      child: GetBuilder<GetxGlobalController>(
        builder: (c) {
          return Row(
            children: [
              Flexible(child: PassItem(pass: c.rxModel.value.current_ch.high_pass!)),
              const SizedBox(width: 10),
              Flexible(child: PassItem(pass: c.rxModel.value.current_ch.low_pass!))
            ],
          );
        },
        init: GetxGlobalController(),
      ),
    );
  }
}
